package com.battcn.platform.service.dataAnalysis;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.battcn.platform.entity.crow.Post;
import com.battcn.platform.mapper.crow.PostMapper;

/**
 * Created by CrowHawk on 17/10/21.
 */
@Service
public class PostService {
    @Autowired
    PostMapper postMapper;

    public List<Post> getAllPosts(Integer selectLimitNum) {
        return postMapper.selectAllPostsSorted(selectLimitNum);
    }
}
